<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../plugins/jquery-2.1.0.js"></script>
	</head>

	<body>
		<!--<ul>
			<li class="test1"></li>
			<li class='test2'></li>
			<li class='test3'></li>
		</ul>-->
<div id="ssa">ssssssssssssss</div>
		<script>
			$("#ssa").on('click' ,function (){
				var file_p = {
				}
				$.ajax({
					type:"post",
					url:"/lvy/filesql/getFlie",
					data:JSON.stringify(file_p),
					contentType: "application/json",
					success:function(rs){
						console.log(rs);
					}
				});
				
			})
			var x = 241;
			var y = 24;
			var z = 155;
			var oX = x.toString();
			var oY = y.toString();
			var oZ = z.toString();
			var oNum = [oX, oY, oZ];
			var oText = ['人使用……', '家机构使用……', '个交易模型'];
			for(var i = 0; i < oNum.length; i++) {
				var text = '';
				for(var index = 0; index < oNum[i].length; index++) {
					text += '<b>' + 100+ '</b>'
				}
				text += '<span>' + oText[i] + '</span>';
				$('ul li').eq(i).html(text);
}

function setNum(obj, num) {
	var n = new Array;
	var timer = new Object;
	var oString = num.toString();
	for(let i = 0; i < oString.length; i++) {
		n[i] = 0;
		timer[i] = setInterval(function() {
			n[i] = n[i] >= 9 ? 0 : n[i] + 1;
			$(obj).eq(i).html(n[i]);
			var text = '';
			for(let k = 0; k < oString.length; k++) {
				text += $(obj).eq(k).html();
			}
			if(text == num) {
				for(var each in timer) {
					clearInterval(timer[each]);
				}
			}
		}, 30 * Math.pow(10, oString.length - 1 - i));
	}
}
//setNum('.test1 b', x)
//setNum('.test2 b', y)
//setNum('.test3 b', z) 

setTimeout(function () {
	setNum('.test1 b', 242);
},1000)

		</script>
	</body>

</html>